<div class="flexigrid flexigrid2">
    <div class="bDiv" style="height: auto;">
        <div id="flexigrid" cellpadding="0" cellspacing="0" border="0">
            <table style="width: 100%;">
                <thead style="background-color: #f2f2f2; line-height: 40px;">
                    <tr>
                        <th class="sign w50" axis="col0"> <div class="tc"> <input type="checkbox" autocomplete="off" class="checkAll"> </div> </th>
                        <th abbr="article_title" axis="col3" class="w60"> <div class="">名称</div> </th>
                        <th abbr="article_title" axis="col3" class=""> <div class="ml15"></div> </th>
                        <th abbr="article_title" axis="col3" class="w200">
                            <div class="sort_style text-l10">
                                <a href="{:getArchivesSortUrl('users_price')}">价格&nbsp;<i {eq name='$Request.param.orderby' value='users_price'}{eq name='$Request.param.orderway' value='asc'}class="asc"{else /}class="desc"{/eq}{/eq}></i></a>
                            </div>
                        </th>
                        <th abbr="article_title" axis="col3" class="w150">
                            <div class="sort_style text-l10">
                                <a href="{:getArchivesSortUrl('stock_count')}">库存&nbsp;<i {eq name='$Request.param.orderby' value='stock_count'}{eq name='$Request.param.orderway' value='asc'}class="asc"{else /}class="desc"{/eq}{/eq}></i></a>
                            </div>
                        </th>
                        <th abbr="article_title" axis="col3" class="w80">
                            <div class="sort_style tc">
                                <a href="{:getArchivesSortUrl('sales_num')}" title="实际销量">销量&nbsp;<i {eq name='$Request.param.orderby' value='sales_num'}{eq name='$Request.param.orderway' value='asc'}class="asc"{else /}class="desc"{/eq}{/eq}></i></a>
                            </div>
                        </th>
                        <th axis="article_title" axis="col3" class="w160"> <div class="tc">创建时间</div> </th>
                        <!-- <th axis="article_title" axis="col3" class="w120"> <div class="tc">商品标签</div> </th> -->
                        <th axis="article_title" axis="col3" class="w220"> <div class="tc">操作</div> </th>
                        <th abbr="article_title" axis="col6" class="w60">
                            <div class="tc sort_style"><a href="{:getArchivesSortUrl('sort_order')}">排序&nbsp;<i {eq name='$Request.param.orderby' value='sort_order'}{eq name='$Request.param.orderway' value='asc'}class="asc"{else /}class="desc"{/eq}{/eq}></i></a></div>
                        </th>
                    </tr>
                </thead>
                <tbody>
                    {empty name="list"}
                    <tr>
                        <td class="no-data" align="center" axis="col0" colspan="50">
                            <div class="">
                                <div class="no_pic"><img src="__SKIN__/images/null-data.png"></div>
                            </div>
                        </td>
                    </tr>
                    {else/}
                    {foreach name="list" item="vo" key="k" }
                    <tr>
                        <td class="sign"> <div class="tc w50"> <input type="checkbox" autocomplete="off" name="aids[]" value="{$vo.aid}"> </div> </td>
                        <td class="w60">
                            <div class="tc">
                                <a href="{:url('ShopProduct/edit', ['id'=>$vo['aid'], 'source'=>'add'])}">
                                    <img width="60" height="60" src="{$vo.litpic}">
                                </a>
                            </div>
                        </td>
                        <td class="goods-item">
                            <div class="fl" style="padding-left: 10px;">
                               <div class="title">
                                    {eq name="$Think.const.CONTROLLER_NAME.'@edit'|is_check_access" value="1"}
                                    <a href="{:url('ShopProduct/edit', ['id'=>$vo['aid'], 'source'=>'add'])}">{$vo.title}</a>
                                    {else /}
                                    {$vo.title}
                                    {/eq}
                                    {notempty name="$vo.marketing_label"} <br><span class="pro-span">{$vo.marketing_label}</span> {/notempty}
                               </div>
                            </div>
                        </td>
                        <td class="w200">
                            <div class="goodsQuickEdit text-l10">{$vo.users_price}
                                <a href="JavaScript:void(0);" class="none" data-url="{:url('ShopProduct/goods_quick_edit', ['aid'=>$vo.aid])}" onclick="eopnGoodsQuickEdit(this, {$vo.goodsSpec});"><i class="iconfont e-bianji"></i></a>
                            </div>
                        </td>
                        
                        <td class="w150">
                            <div class="text-l10 goodsQuickEdit"  {eq name="$param.query" value="3"}style="color: red;"{/eq}>{$vo.stock_count}
                                <a href="JavaScript:void(0);" class="none" data-url="{:url('ShopProduct/goods_quick_edit', ['aid'=>$vo.aid])}" onclick="eopnGoodsQuickEdit(this, {$vo.goodsSpec});"><i class="iconfont e-bianji"></i></a>
                            </div>
                        </td>
                        <td class="w80"> <div class="tc">{$vo.sales_num}</div> </td>
                        <td class="w160"> <div class="tc">{$vo.add_time|date='Y-m-d H:i:s',###}</div> </td>
                        <td align="center" class="operation">
                            <div class="tc">
                            {eq name="$param.query" value="4"}
                                <a href="JavaScript:void(0);" onclick="goodsRestore({$vo.aid});" class="btn blue">恢复</a><i></i>
                            {else/}
                                <a href="JavaScript:void(0);" onclick="goodsArcrank({$vo.aid}, -1);" class="btn blue" {eq name="$vo.arcrank" value="-1"} style="display: none;" {/eq}>下架</a>
                                <a href="JavaScript:void(0);" onclick="goodsArcrank({$vo.aid}, 0);" class="btn blue" {egt name="$vo.arcrank" value="0"} style="display: none;" {/egt}>上架</a>
                                <i></i>
                                {eq name="$Think.const.CONTROLLER_NAME.'@edit'|is_check_access" value="1"}
                                <a href="{:url('ShopProduct/edit', ['id'=>$vo['aid'], 'source'=>'add'])}" class="btn blue">编辑</a><i></i>
                                {/eq}
                                <a href="JavaScript:void(0);" onclick="goodsCopy({$vo.aid});" class="btn blue">复制</a><i></i>
                            {/eq}
                                
                                {eq name="$Think.const.CONTROLLER_NAME.'@del'|is_check_access" value="1"}
                                <a href="javascript:void(0);" onclick="goodsDelete({$vo.aid});" class="btn red">删除</a>
                                {/eq}
                            </div>
                        </td>
                        <td class="sort">
                            <div class="w60 tc">
                                {eq name="$Think.const.CONTROLLER_NAME.'@edit'|is_check_access" value="1"}
                                    <input type="text" onchange="changeTableVal('archives', 'aid', '{$vo.aid}', 'sort_order', this);" size="4" value="{$vo.sort_order}" onkeyup="this.value=this.value.replace(/[^\d]/g,'');" onpaste="this.value=this.value.replace(/[^\d]/g,'')"/>
                                {else /}
                                    {$vo.sort_order}
                                {/eq}
                            </div>
                        </td>
                    </tr>
                    {/foreach}
                    {/empty}
                    </tbody>
            </table>
        </div>

        {notempty name="list"}
        <div class="footer-oper">
            <span class="ml20"> <input type="checkbox" autocomplete="off" class="checkAll"> </span>
            <div class="nav-dropup">
                <button class="layui-btn layui-btn-primary dropdown-bt">批量操作<i class="layui-icon layui-icon-up"></i></button>
                <div class="dropdown-menus" style="display:none; {if condition='0 < $pager->totalRows && ($pager->totalRows < 2 || $pager->listRows < 2)'}top:28px;bottom:unset;border-bottom:1px solid rgba(0,0,0,.15);border-top:none;min-height: 250px;{/if}">
                    {eq name="$param.query" value="4"}
                    <a href="javascript:void(0);" onclick="goodsRestore(null);">恢复</a>
                    {else/}
                    <a href="javascript:void(0);" onclick="goodsArcrank(null, 0);">上架</a>
                    <a href="javascript:void(0);" onclick="goodsArcrank(null, -1);">下架</a>
                    {/eq}
                    <a href="javascript:void(0);" onclick="goodsDelete(null);">删除</a>
                </div>
            </div>
            {include file="public/page" /}
        </div>
        {/notempty}
    </div>
</div>